Interview Questions and Answer
Options:
a. There should be a condition in the while loop
b. There should be at least a semicolon in the while
c. The while loop should be replaced with for loop
d. No error
Reveal Answer
Options:
a. 0 0 – 0 1 – 0 2 – 1 0 – 1 1 – 1 2 – 2 0 – 2 1 – 2 2 -
b. 1 0 - 2 0 – 2 1 -
c. 0 1 – 0 2 – 1 0 –1 2 – 2 0 – 2 1 -
d. No Output
Reveal Answer
Bestdotnet google plus